Hi,
eval_("#include <C:\\Program Files (x86)\\IBM\\Rational\\DOORS\\9.3\\lib\\dxl\\standard\\suspect\\filter\\filter_in_open>") || eval_("#include <C:\\Program Files (x86)\\IBM\\Rational\\DOORS\\9.3\\lib\\dxl\\standard\\suspect\\filter\\filter_out_open>")
josiah820 - Tue Jun 12 14:19:11 EDT 2012 |
Re: "Or" eval_ Statements?
Well the first question would be if you really need eval_ statements. I suspect each include file will set its own filter, so what you would need to do, is include each include file, get the current Filter, then OR these filters and then set the combined filter. Maybe something like this:
Filter g_filter_1 = null, g_filter_2 = null
// we use brackets so we separate the namespaces of the include files, in case they define the same variables
{
#include <... my filter file 1 ... >
g_filter_1 = current
}
// we use brackets so we separate the namespaces of the include files, in case they define the same variables
{
#include <... my filter file 2 ... >
g_filter_2 = current
}
Filter result = g_filter_1 || g_filter_2
set result
filtering on
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: "Or" eval_ Statements? Mathias Mamsch - Wed Jun 13 04:28:31 EDT 2012
Well the first question would be if you really need eval_ statements. I suspect each include file will set its own filter, so what you would need to do, is include each include file, get the current Filter, then OR these filters and then set the combined filter. Maybe something like this:
Filter g_filter_1 = null, g_filter_2 = null
// we use brackets so we separate the namespaces of the include files, in case they define the same variables
{
#include <... my filter file 1 ... >
g_filter_1 = current
}
// we use brackets so we separate the namespaces of the include files, in case they define the same variables
{
#include <... my filter file 2 ... >
g_filter_2 = current
}
Filter result = g_filter_1 || g_filter_2
set result
filtering on
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Thanks |